/*
Copyright (c) [2019年5月1日] [吴超]
[MBT_Studio] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
#include "stdafx.h"
#include "渲染物体约束更新.h"

void f_物体约束_更新场景物体() {
	f_辅助物体_更新约束();
	f_物体约束_更新渲染物体变换();
}

void f_物体约束_更新渲染物体变换() {
	
	//渲染
	for (auto& e : f_global_渲染物体()) {
		Mat44f 父级变换 = f_mat44_identity();
		f_ob_更新变换约束(e.second, &父级变换);
	}

}

void f_物体约束_更新拾取物体变换() {
	for (auto& e : S_框架::g_拾取物体) {
		Mat44f 父级变换 = f_mat44_identity();
		f_ob_更新变换约束(e, &父级变换);
	}
}


